package 桥接模式;
// 长方形：Rectangle.java
public class Rectangle extends Shape{

    public void draw() {
        color.bepaint("长方形");
    }
}
